import BaseApi from '../BaseApi';

const controller = "/landlord";

export default {

    postListLandlordInfo(condition) {
        return this.requestPost(controller, "/listLandlordInfoPage", condition);
    },

    postAddLandlord(condition) {
        return this.requestPost(controller, "/addLandlord", condition);
    },

    postUpdateLandlord(condition) {
        return this.requestPost(controller, "/updateLandlord", condition);
    },

    /*请求封装*/
    requestPost(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestPost(newUrl, condition);

    },
}